package com.xuan.common.core.controller;


import com.xuan.common.core.domain.R;

public class BaseController {

    /**    **/
    public R<Void> toR(boolean result) {
        return result ? R.ok() : R.fail();
    }

    public R<Void> toR(long rows) {
        return rows > 0 ? R.ok() : R.fail();
    }

}
